package com.guge.sports.entity.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class RunningDetailsDataDto {

    @ApiModelProperty(value = "主键")
    private Long stid;

    @ApiModelProperty(value = "班级id")
    private Long classId;

    @ApiModelProperty(value = "学生姓名")
    private String sname;

    @ApiModelProperty(value = "学号")
    private String sno;

    @ApiModelProperty(value = "性别 1.男 0.女")
    private Integer sex;

    @ApiModelProperty(value = "学生电话")
    private String phone;

    @ApiModelProperty(value = "认证状态 0.未认证 1.已认证")
    private Integer state;

    @ApiModelProperty(value = "入学年份")
    @DateTimeFormat(pattern = "yyyy")
    @JsonFormat(pattern ="yyyy",timezone = "GMT+8")
    private Date goschoolYear;

    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    //
    @ApiModelProperty(value = "院系名称")
    private String deptName;


    //跑步公里数
    @ApiModelProperty(value = "跑步公里数")
    private Float validMiles;


    @ApiModelProperty(value = "是否有效")
    private Integer isValid;

    @ApiModelProperty(value = "打卡编号")
    private String cardNums;

    @ApiModelProperty(value = "平均配速")
    private Float speed;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date stateTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "学期名称")
    private String semesterName;
}
